#ifndef DK_UTILS_TIME_H
#define DK_UTILS_TIME_H

#include <chrono>
#include <fstream>
#include <memory>

/**
 * @brief  获取系统时间
 *
 * @return double
 */
inline double GetSystemTimeSecond() {
  std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds>
      current_time = std::chrono::time_point_cast<std::chrono::milliseconds>(
          std::chrono::system_clock::now());
  return (double)current_time.time_since_epoch().count() * 1e-3;
}

#endif